home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / linux / tools / amiga / gzip-1.1.2.lha / gzip-1.1.2 / lzw.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-25  |  594 b   |  28 lines

  1. /* lzw.c -- compress files in LZW format.
  2.  * This is a dummy version avoiding patent problems.
  3.  */
  4.  
  5. #ifndef lint
  6. static char rcsid[] = "$Id: lzw.c,v 0.8 1993/04/25 08:09:58 jloup Exp $";
  7. #endif
  8.  
  9. #include "tailor.h"
  10. #include "gzip.h"
  11. #include "lzw.h"
  12.  
  13. #include <stdio.h>
  14.  
  15. static int msg_done = 0;
  16.  
  17. /* Compress in to out with lzw method. */
  18. int lzw(in, out)
  19.     int in, out;
  20. {
  21.     if (msg_done) return ERROR;
  22.     msg_done = 1;
  23.     fprintf(stderr,"output in compress .Z format not supported\n");
  24.     in++, out++; /* avoid warnings on unused variables */
  25.     exit_code = ERROR;
  26.     return ERROR;
  27. }
  28.